package cn.funnymap.lgis.mp.ltree.pojo.entity;

import cn.funnymap.lgis.mp.entity.BaseEntity;
import cn.funnymap.lgis.mp.handler.LTreeTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liby
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class LTreeBaseEntity extends BaseEntity {
    @TableId(value = "id")
    private String id;

    @TableField("name")
    private String name;

    @TableField(value = "path", typeHandler = LTreeTypeHandler.class)
    private String path;

    @TableField(value = "sort")
    private Integer sort;
}